fix xpos issue