Document search's bug fixed