Fix error in logic to skip slots without data