Cut off the heads that are expelling the brown jelly like substance. If it's not too late the other heads that are still extending should be ok if you remove the infected heads.