fix document online view bug