GRIM: fix compilation warning