fix module type name
fix infinit loop bug