bug fix if no times available
bug fix if no times available