fix get empty array