Fixed errors in gui-java