Fix: Use a callback to set the initial attribute value.