How to Avoid Relay Misoperations due to Wrong Settings of Firmware Bugs