Removes unnecessary redirection