Fix incorrect duplicated module search