DocumentController fix