fix bug with File.size logic