fix for tables with spaces in names