fix bug: change bash variable $$ to $#