fix set-but-not-used