fixed a couple of minor errors