fix cocoon