small fixes for smoother animation.