date param bug