fix a init bug of todos after map change

fix a bug in the loading of the background thoughts/todos when the map
is changed; clean the code up