Fixed incorrect use of private member variable.