fix -w option

-w wasn't respected