tresql method bugfix for Join