Fix membranes stuff.