Fixing top-scope variable