Remove µcontroller from its socket. Check if the pin that drives the ‘missing’ segment is not shorted to ground. Next, check if µcontroller drives the pin correctly.
If all else works when rotating the button, then you make a mistake while changing the code.