fix refresh method