avoid id set twice in template