Update ExtensionMethods.cs

A quick hotfix for #5