Fixed bug with variety of view models in database.