fix erroneous position calculation due to additional offset