fixed js error - value_to