fixes to arrow primitives