Fixed glitch with parent checking