fix frequency errors