ECMS-5396 avoid to replace the existing template in different category