fix inherited profiles serialization