Fixed compilation for release mode (forgot to update a local variable name).