Fix creating objects or postcards with local files issue.