fixed mac file get&set bug