fixed typos
minor bug fixes