Fix null value in array