fixed bug in ordering the dictionary

The bug occurred because I reordered the CONTENT_TYPES but forgot to
update the flag dictionary. Now fixed.