fix for stop command in case secondary address is used