fixed a couple of bug-causing typos