Fix wid bug (each document has a unique short id).