uml: fix console writing bugs