Fixing shell script