fix sending variables