Fix bug in label code.