remove path attribute from template