Fix bug shell script