Turns out that minecraft assumes that the block id of a flowing liquid is 1 less than the id of the still version of that liquid. So fixed this.