fix some bugs, make script runs continue

Signed-off-by: xiehuc <xiehuc@gmail.com>
fix the reverse of yanei story script's bugs

Signed-off-by: xiehuc <xiehuc@gmail.com>