# 07-04 Debugging Correction Algorithm
Today I spent most of my time debugging the correction algorithm. For some reason it was not able to find the gateway measurement counterpart for a client measurement. Turns out that I was taking measurements from the wrong side of the queue after I refactored the cache interface. New rssi were pushed to the left side, but rssi were retrieved from the right. I was getting old RSSI that didn't even include the gateway counterpart.
I thought that the tests would be a safety net that would prevent fundamental bugs like that, but in my tests I took the entire pool out of the cache. Therefore it always found what it was supposed to. I did some measurement runs and will post the results tomorrow.