Fixed bug in tracks controller