Fix redirect plugin