fixes segment appending order during quality switching