Fix documentation typo
Fix bug in previous/current step in LIR computation.