bugs in gui fixed