fixed bug with GUI editor