Bug fix for read-only fields: Error was occurring when setting a read-only field from within a hook callback.