Fix compile error

Fixed the compile error related to WCLength fix