minor bug on documents fixed