don\'t read undefined props
fix undefined reading