GRIM: fixed issue #1069