Fix bug in auto slot management