Fixes problem with extensions.