fix zarray parsing