Fixed not being able to view doc after saving