Just post it to be sure that after this modification it will work OK. If it does, then sure the de-bounce is an issue here.

If not, then we have to look elsewhere, though I doubt.

Ioannis