tables in tetx ref fix