Fix join, wrong [for in] usage and each return