Fix uninitialized use of project file buffer

And fix some minor typos