index out of bounds fix for fieldhelppanel