fixed -100% bug for 0/0
added check for div by 0