fixed #1649: Changed return type to const reference for member variable access.