fix LNR/LNGR implementation in simulator.