fix bug: wrong refresh()