remove duplicated tags from template and .haml