fix bug in values when converting zval