Fixed bug in File object