Changed condition to successfully load plugins