fixing parsed value for PHP object