fixed some WCF compatibiluyt