added avail gap fix and empty serie for nosql