fixed small bug in gui