Fixed empty data issue for getArray