fixed error with parents