Fixed hack in shell script