fixes in mcsolve_f90