correctly align a markers refX and refY positions