fix bug in utils fillArray