bugfix for shell script