Fixed the bug that meant couldn't add an instance of the model to a collection