fix extension task registration after restart