Fixed runtime error on collection creation (oops!=