fix few compile errors