I was having an interesting bug with changes not being registered. The fix was unusual. The first code works fine, while the second one - doesn\'t.
bool tmp =