Not finishing automatically after solution