fix on esc for date