Fix strict-mode upgrade error on collections.