fixed cmd opt bug