Fix variable by reference warning.