minor bug fix in $ completion