Fixed error on join