fix 2d context rendering