fixed 'NoneType has no attribute today' error