fix rposition bug