Fix bugs in DASH client