RooFit problem producing 2D fit projection

Hi, I’m trying to use RooFit to perform a bi-dimensional fits. After few test I have tried in building a simple model with a background and 2 signals. I use the model to generate a data sample then I try to fit the model. The fit results are ok, but the projections are not normalized in the right way.

I have attached the the macro and a gif. In the macro I have tried both both extended and unextended models, in any case the numbers are ok while the projections have a wrong normalization.

rvtest.C (2.09 KB)