Fixing modeling bugs caused by unrecognized space character and a few typos