save module initialization order. should fix #7300