fix bug for fib