Qlength fixes