bug fix sending preference to php