fixed update frequency bug