fix Collection length BUG