fix a bug in generating GUI, failsettable is null