attempt to fix error when refreshing data