solve end error