Fixed a crash error and a few typos.