fix bug in multi-model reading