fix an animation frame error
work around the canvas element and processing doordinates