sgw: fix a typo in an assert