In this sentence, is there an error?
In the name of revamping the law, investigation and trial should not be altered in a way which undermines the principles on which the judicial system was founded.
My book says that 'which' should be replaced by 'that. If yes, why is that?