Fix write4bits