fix a bug that can't parse empty array