sgw: fix a shadowing warning