fix out of bounds issue
Patch: Martin Balik

Signed-off-by: Roger Meier <r.meier@siemens.com>