fix undefined property