bug fix on joinable condition