Fix problem with having to reload the extension twice.