Fix a couple of errors