fix condition on first slot