Fixed stack overflow in preprocessing
Fixed stack overflow in preprocessing