Error compensation modified