Fix bug that causes skew in canvas renderings