fixed crash in statistics visualize when tables do not exist