fixed error with solve() with no field