fix issue with join buggery