fixed bug -> add_document() times count cache.
fixed view