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