fix opacity binary writing.
Fix publishing crash. Issue#152