Position compensation