Fix bug in getInstrument()