your this for loop should be execute only 49 times to place 49 fibs , but it is inside your outer loop
so it is executing more and giving unexpected output.