-Fix type in java serializer