The sentence below contains two errors in grammar usage. Read the sentence and the question that follows.

Kelsey knew that, after working for days in the hot sun, her garden looked better then it had last year.

Which version of the sentence has been correctly edited for grammar usage?
A.

Due to working for days in the hot sun, Kelsey's garden looked better than it had last year.
B.

Kelsey knew that, after working for days in the hot sun, her garden looked better than it had last year.

A.

Due to working for days in the hot sun, Kelsey's garden looked better than it had last year.