fixd bug with incorrect table-prefix