fix issue with rewrite