fixed a couple small compile errors