fixes to make freq() work well with view()