Fix a couple of silly bugs.