Fix #1

Fix reverse map incorrect
Deal with [var_]
Correct start/end offset value for each case