Remove the grammatical mistakes from the following text
She thought that she could have done things different, but it was too late to change them.
She thought that she could have done things differently, but it was too late to change them.