fixed delete_current_track function