Fix -k -> -w bug