fix a couple of errors