fixed showing empty tables