Fix saving array properties bug