fig a bug in refreshing gate voltage