Fixed a bug with planting