Fixed the type of parent