fix child detection