fix command rewrite through command line