fix initialization error when no cache