fixed buffer format on robovm backend