Fix bug in listing available dates