added try block in frmHeadDesign line no 766