fix latestValue bug and remove ruby script