fix for undefined property