parent check bug fix