Bugfix for checking excluded extensions (static)