fix crasher in date router