Fix bug in getting cell for given date