[ERROR]TypeError: Cannot read property 'gatewaySid' of null
Hello! I receive this error in console when I'm trying to switch a pug from Xioami and it doesn't work unless I restart homebridge.

`"platforms": [{
                        "platform": "MiAqaraPlatform",
                        "gateways": {
                                "7811dcfd5298": "6F88352054144AAB"
                        },
                        "defaultValue": {
                                "7811dcfd5298": {
                                        "Gateway_Lightbulb": {
                                                "name": "Luz Gateway",
                                                "disable": false,
                                                "ignoreWriteResult": true
                                        },
                                        "Gateway_Switch_JoinPermission": {
                                                "name": "gateway join permission switch",
                                                "disable": true
                                        }
                                },
                                "158d0001bd1980": {
                                        "Global": {
                                                "disable": true
                                        },
                                        "Button_StatelessProgrammableSwitch": {
                                                "name": "Botón pasillo",
                                                "disable": false
                                        },
                                        "Button_Switch_VirtualSinglePress": {
                                                "name": "button virtual single press",
                                                "disable": true
                                        },
                                        "Button_Switch_VirtualDoublePress": {
                                                "name": "button virtual double press",
                                                "disable": true
                                        }
                                },
                                "158d00024668d8": {
                                        "Global": {
                                                "disable": true
                                        },
                                        "Button_StatelessProgrammableSwitch": {
                                                "name": "Botón comedor",
                                                "disable": false
                                        },
                                        "Button_Switch_VirtualSinglePress": {
                                                "name": "button virtual single press",
                                                "disable": true
                                        },
                                        "Button_Switch_VirtualDoublePress": {
                                                "name": "button virtual double press",
                                                "disable": true
                                        }
                                },
                                "158d00023ff16c": {
                                        "PlugBase_Outlet": {
                                                "name": "luz de la mama",
                                                "ignoreWriteResult": true
                                        }
                                }
                        }

                }`