fix error in checking baby range