Fixed bug with table hiding not working right.