Model not reproducing observed data?

You cannot feed number other than [0, 1] to the Bernoulli distribution, it probably cast data to the closest integer internally.