fix some 8bit related issues