Compare the operation correctly

This bug would have prevented "command" operations from getting processed properly.