try fixing array access type