Fix project metadata reset when exiting a project
Fix typos