date control fix