fixes LocalJumpError

resolves #1