fix flashcanvas undefined bug