Fixed android serialization bug.