fixed the dodging bug