fix a bug when no db hit