fixed case when '--' is used