fixed model initialization