fix resize canvas if anim = false