Fix bug with binary values