Fix offsets for canvas