Fixed a couple of errors