This fixes #23 bug when joining right & left tables