Applied temporary fix to sprout and retract function