Fix save bug where close param was ignored