fixed setPosition