fix duplicated entry problem with no namespace