Fixed two bugs in getTimesByStop