fixing ugly lmr bug