Join error detection wasn't working correctly