fix the overflow bug of title