Fix listener constructor in main plugin class.