MCP23017 - settings memory

Hi. Does MCP23017 remember the settings? The MCP23017 system that I have been using for several months on the channels in group B (inputs) gives the opposite values. When it is high, it gives OPEN, and when it is in the state, it is CLOSE. Previously, it was the other way around. Has it been damaged or is it the fault of the configuration?