Fixed a bug in setting the default edit mode in member editing events.