fix broken user input handling

it was a self-assignment after post {in,de}crement bug