fixed Timer.immediate for Java