handle redirection after join
bug fix