Fixed WAS to WSH bug