Fixed crash when planting seeds.