failed attempt to fix predrawing canvas