Fixing serialization error in mono.