Fix bug 3250, function comp needed limits