master: Fixed bug with outputting incorrect tag to System.out.