fix util [index out of range]