fixed a couple errors