Update minced

fixed a bug in the shell script