Fixed a bug in parent.