Fixed a E_NOTICE when installing the plugin