fixed bug in slave removal from master's list