Fix nasty bug with updating plugins