fixed two compile errors