Fixed bug with label types