put code in places where it didn't get run.  Once code was put in proper place, bug magically stopped ocurring