Heres some code fixes.