Fixed "$" not being defined defect.