fix viewer set position