Minor fixes to collection code syntax