Fix undefined property error.