date assignation bugfix