fixed an issue with duplicate goto labels