minor code correction in addCom form