fix for undefined index