fixed bug self._tables, thanks Mart