Fixes bug on enemy's defeat animation