fix canvas proxy code for sending resize events