repair FATAL bug: I forget to deal with duplicate code..., TODO: tidy the flypy.mb