Fix #112 models now parsed correctly when passed via constructor