fix multiple redirections; v0.1.3