Fixed an error in setting createdDate