api route fix