Fix grant error