fix date dependent spec problem