fix join table