prevent undefined property error #731