fix bug on line 113 of work.sh