fixed an issue where create wasn't working inside a collection