Fix clear function to work with current tracks