Fixed cast to JoinNode.