Adjusted the order of the model matrix multiplication, to account for
scaling correctly.