Fix bug where sim.reg did not work with single level data