bugfix computing joins