corrections in api-to-ajax-routes