mod 256 bug fixed