fix table being empty, empty list expected but getting null