fixed 255 bug