A small fix to avoid undefined index notices