Fixed a bug due to not considering $