Fixed display bug with long text