doc and error fix