fix shell script bug