fixed redirect gem error