fixes double activate() of plugins