guarding against division by zero.
Merge branch 'master' of https://github.com/brainteam/BrainSphere.git