Update ExtensionMethods.cs

This is a simple, yet working hotfix for #6