Fix a notice on undefined property