bug fixed for doc