fix bug on shellscript