Index: Plugins/Visualization/paranormal/pn/pnscript.c
===================================================================
--- Plugins/Visualization/paranormal/pn/pnscript.c	(revision 2109)
+++ Plugins/Visualization/paranormal/pn/pnscript.c	(working copy)
@@ -179,7 +179,7 @@
   guint *op;
   gdouble stack[64];
   guint stack_top = 0;
-  guint temp;
+  gdouble temp;
 
   g_return_if_fail (script != NULL);
   g_return_if_fail (PN_IS_SCRIPT (script));
@@ -211,19 +211,19 @@
       case PN_OP_ADD:
 	/* PEEKN (2) += POPV; */
 	temp = POPV;
-	PEEKN(2) += temp;
+	PEEKN(1) += temp;
 	break;
 
       case PN_OP_SUB:
 	/* PEEKN (2) -= POPV; */
 	temp = POPV;
-	PEEKN(2) -= temp;
+	PEEKN(1) -= temp;
 	break;
 
       case PN_OP_MUL:
 	/* PEEKN (2) *= POPV; */
 	temp = POPV;
-	PEEKN(2) *= temp;
+	PEEKN(1) *= temp;
 	break;
 
       case PN_OP_DIV:

