fixed couple of errors