Ok, if you are sure..
Although it is related for one of the conditions is to check the local key level1 and if that local key is changed, but not changed back..
But I'm just responding to what I see in your events, maybe you are changing it back to 0..