trying to fix double bin encoding.