fixed namespace issue in cp template