fix bug when some properties are missing