Fixed some errors with $