bugfix for animation