Fix problem with top terms