Fixed bug when deleting many tracks from DB