fix skipping document