Fixed bug in fibonacci funciton.

Change-Id: I3acc2f3f6484ae62532577bc504a646136b9b178