Fixing the inverter and solving the error of that inverter