Console: fixed problem with jdk6