Fix a wrong array slice.