Fixed comparison of module id