shell script bug