Bugfix to selectExtensions