Fixed issues where membrane distmap not updating after patching membrane