Fixed bug creating values in data out of range(0, 256)