Set the value correctly when using data argument.