Fix bug in the add track process