fix visitdate error