Fixed incorrect indices