bug fix in clinic controller