Weird mask bug

hello, i’ve been trying to mask an image but noticed i had to parent a mask to the first mask to make it work? if i turn off the mask component from the parent mask it breaks and nothing gets masked, i don’t know if i’m just dumb or if this is a bug.