fix support for table prefix