fixed frequency bug with handler