frequency measurement loop fix
frequency measurement loop fix