fix x,y offset for begining to support multi device