fixes check_grant method

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>