Fixing bug in operators