Fixed a couple of minor errors