Fixes data in input for index
error highlighting redone.