bug fix in gui