fix RSSI calculation