fixed bugs when cached list is empty