Fixed bug with go button in Java.