ufo: fix reading the frequency flag