Fixed issue where flags would not do anything