Fixed (I hope) bug with the user field in a document