Fix unused variable in release build