Get device-session error

Hi brocaar,
Sometimes when I try to send data I am facing the below issue. (but not always)

ERRO[0490] processing rx packet error: get device-session error: device-session does not exist or invalid fcnt or mic data_base64=“QKUE0AGAAAACXgQw8S7mQn3K0I4=”

But when i delete the device in web UI and recreate it with the same information(deveui,devaddr,nwkskey,appskey) this issue gets solved. Since i cant delete and recreate the device always please give me the accurate solution.

Please see: