missing global caused undefined index error.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>