Fixed problems with File attributes