bugfix: orders of vars in function plot.pan