fix date control