Fix saveas server error

This fixes #102