Fixed refreshing tables in background process