fixed shell script bug