I unrooted and re-installed stock recovery from CWM on my Nvidia Shield Tablet. But when I tried to install an OTA, I got However when I tried to install the update, I got a red triangle error. After checking the log I got an error saying "Package expects build fingerprint of ... or ..., this device has ...."

I can't remember what the fingerprints were, but the first one was something that began with "nvidia/", had a bunch of numbers in the middle followed by an underscore, then it ended with "/release-keys".

However the device's current build fingerprint was exactly the same as the first, ***except that it cut off halfway through***, right after the numbers and the underscore.

Resetting the cache didn't work. How was this error caused, and how can I fix this without wiping my data?