fix typebar position incorrect