fix #644 by not processing step locals in scratch space