fixing $ problem