Fixed bug discovered after label switch bug correction.