Fix top increment & decrement logic and a typo in display loop.