fix error when label is not string