fixed the problem with GUI update