Fix label retrieval

TYPE parameter wasn't being read properly