Fixed the nastiest error ever encountered in Java Swing  :panda_face: