Fixed android crash bug.
Updated for objectIO