fixed viewer/editor restore position issue