fixed bug in gc.sh