Fix the fatal error on default_settings function
Update plugin activate and deactivate functions