FLAPS HANDLE INDEX gives strange values.

Hi! Im getting strange values from "FLAPS HANDLE INDEX". For example when I change the flaps fast it changes from 0 to 8 and then back to 4 and so on. Is it any way to fix this? Or am I doing anything wrong?