fix bug with -c