corrected animation's rect update calculation