fixed a bug in restarg-handling in primitives