a couple small fixes