Fix for the planting bug