fixed problem with solver