fix impl of fib