Additional fix to sprouting function