corrected a bug in operator registration