Fix saving of project preferences