correcting a little animation bug