Fixed bug causing tab refreshing to return incorrect items