Corrected the initialization order on the model.