Fix the fib function problem