fix bug of GUI