Fixed duration index 0 being missing and improved the flags editors by fixing a possible bug with it.