resolves canvas shift issue