fix offset bug on locate x,y,expr