Bugfix to track uri generation from gid and track availability checks.