fix bug for out of bound in array when call fieldAt