animation bug fixing