Fixed an upgrade script
Merge pull request #1342 from gem/fix-add-grants

Fixed an upgrade script