attempt to fix rewrite issues when set to false