Fix template argument of solver class.