fixed global binding problem in mmplot