Fixed file save bug