Fixed formatValue