fixed minor compile errors