fixed api append data saying success when it failed