Fixed type bug in rotating facing direction