Small bug

Changed reference in getLabels call to fix bug where there was only a
single basename