fix partial refresh bug