fixed a bug where the wrong normal sample was used when a transformed response was used in the model