flight plugin fix