fixed issues with default date and id