Fixed bug with not displaying tables after upgrade