Fixed Solver to Create File when needed