fix grant amount bugs.