fixed an error in how labels were being ordered