fixing possible type in rewrite rule