avoid undefined property