Fixed file save bug breaking tests.