Fix typo which caused the file ivar to be set instead of function