fixed date refresh bug