fix preprocessing bug.