remove bug of $ not defined