fix bugs of overflow on pro-text