fix a bug in generating GUI, failsettable is null
Merge pull request #17 from bbai/RefreshControl

fix a bug in generating GUI, failsettable is null