apply date bug fixed