fixed error with checking sended dates