[BUGFIX] Rewrites not compatible, undefined variable