try to fix y>255 crash