Hello Mr.Clive,
The first sentence was given to a student for correction and the teacher suggested the same as (2).
One more doubt , there is a comma before the word when
1. She was asleep, when her mother came.
Is the comma correct in this sentence?