fix tmp3 broken html and simplified others for join operation