Division error fix.
Merge pull request #152 from AndreLesa/division_error_fix

Division error fix.