bugfix for redirector