fixed the /w /W bug