fix bug where we used color index 0xFF, which didnt exist