Fix bugs in Model::initialize: it initializes only first column of P and Q