fixes for a couple errors