fixed of horizontal no movement bug