bugfix: fix check for valid track number