Fixed a few bugs in dealing with the granular acceleration algo