Fix i * 16 check

Use i * 16 on the else instead of 255 twice.