fixed bug in connection of txtFrequency