Fixed the preprocessor of data to make sure the solver is only called once