Fix to the rewrite file