fix _.chunk function