fix refresh callback