Corrected indexrepair function signatures