fixed requeuing bug