bugfix: proper redirection