Fix setting of collection