fix bug: 0 is False,so if slot is 0,if not slot will be true