fix bug with enemies stopping