api routes fix