fixed getTrackSize method