added missing check for a file field