Fix a few warnings of unused variables