fixed issue with erm search by type