fix bug with init collections