Fix two compile errors