Fixes some canvas errors.