Corrects rabbit variables on api and scheduler