Fix undefined index notices

Signed-off-by: Marc Delisle <marc@infomarc.info>