Correct any grammatical issues in the following text
The weight problems were countered easily by properly aligned the batteries such that the weight will give more stability to the EV.
The weight problems were countered easily by properly aligning the batteries such that the weight would give more stability to the EV.