edit gui, repair bug in test case.