bug fix over primitive type array (objective C)