Fix #126: fix preview server and autosave