Fix for rules handling so that Model::rules() only gets called once