Remove unused variable

Fixes compilation with Clang 3.4
Fix bug