Fixed minor routes issues with the API