fixes output text issue on jdk6