bugfix

We weren't casting some writes to 8 or 16 bit away from 32...