fixing compound index example