fix bug with createdDate