Fixed bug when exporting to 8-bit