fixes text-track related logic