Fixed a frequency bug in scheduled api call.