Remove unnecessary blank rows