GOB: Fix a potential array overrun