handler/RewriteFrom: Fix a bug