Lines 70-71 should go after line 104 instead. See my other comment for why.