solve a few problems when save the module code