buge fix nil element in array