Fix a couple of bugs caused by typos.