Trying to fix Java page