Fixed api by changing _id to id