(flight) code style changes.
(flight) fix clearCompleted bug.