Fixed missing bracket in $ function.