fix empty array key issue