Fix bug 2780, fix popup problem, changed "relation" to "function" since it is using function notation, and removed part with was mathematically incorrect.