fixed bug "Undefined variable: pkey" in mongo/mapper.php