Fixed bug in NIL related to the Flag's entity identification