Fix to Rest plugin