Fixes undefined index notice on activation. Fixes #2.