Fixed bug in WCF context wrapper