Fixed incorrect decrementation of nesting_level.

Thanks Florian for catching this mistake.