fix bug in refresh control