fixed most bugs of dictionary fragment.