fixed a few compile errors