Fix set-but-not-used warning