fixed an issue with getting a label