Fix for corrupt rows in db