fixed possible bug when hatching, fixed head flip