Fix monitor serialization