fixed retrieval of label