Fixed the flags