Fixed a bug in setting sample createdDate