modify for LocalJumpError
modify for ruby2.0