Add line to index

introduce bug