Fixes java newline hang