Bug fix (Undefined Variables on the 'addresult' page)