fixed setposition bug