fix 960932 by add boundary checks on run_before -- review request #51