fixed bug in comp.sh