Fixed how the module id get for histor of metric result