Fixed bug with length of value when raw is missing