Fixed redirection bug

Found the source, obvious as expected! Fixes #20