fixed linux variable memory sharing issue