GRIMDEMO: Set the right role of the ObjectState.
(cherry picked from commit 824bfa524497e132e76e4821b9fc7c18de0a813f)