fixed small parent id bug