bug fixed while removing slots with a warning