Fixed creating the collection file if one doesn't already exist