join queries fix