fix a couple errors