fix empty elem in array