fix error not refreshing