fix a problem when adding a module with the paths