fix planting check and last row length calc#