Fix 8 bit mode and rotation mode issue