fixed bug in parent enter