fixed collection mangingling bug