Fixed : delete option on deactivate template