fixed zero division error
Not sure if committed?