Fix offsets for canvas
Merge pull request #958 from caiiiycuk/offsets

Fix offsets for canvas