Fix some bugs. Failed to undo using prevLSN...