fix bug in today()