fixed grabbing date