fixing permanent redirect