fixed remove slave when saving bug