Fixed incorrect index