Fixed check for model id
Call the proper function in InMemoryAdapter
Version upgrade