fix dropdown target in certain rewrite settings. closes #23