Fix a couple of schoolboy errors