fixed uninitialized reference error