Fixed the preprocessing bug