fix mod queue logic