Bugfix: possible index-out-of-bounds (detected by H. Klingenberg)

The control variable may be increased to access a field not initialized beforehand.