Added row reidexing, otherwise wrong data is sent to backend.