fix error when editing members