Corrected output index